﻿using System;

namespace Sortering
{
    partial class Array
    {
        public static void Swap(int[] array, int a, int b)
        {
            int temp = array[a];
            array[a] = array[b];
            array[b] = temp;
        }
        public static void Swap(char[] array, int a, int b)
        {
            char temp = array[a];
            array[a] = array[b];
            array[b] = temp;
        }
        public static void Swap(string[] array, int a, int b)
        {
            string temp = array[a];
            array[a] = array[b];
            array[b] = temp;
        }
        public static void Swap(object[] array, int a, int b)
        {
            object temp = array[a];
            array[a] = array[b];
            array[b] = temp;
        }
    }
}
